﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace University.Workshop.Presenters.Users
{
    public class PresenterSecondStepForRegisterUser
    {
        ISecondStepForRegisterUser view;

        public PresenterSecondStepForRegisterUser(ISecondStepForRegisterUser view)
        {
            this.view = view;
        }

        public void UpdateData()
        {
            view.Role = view.UserToRegister.Role;
            view.Login = view.UserToRegister.Login;
        }

        public void ChargeDataUser()
        {
            view.UserToRegister.Login = view.Login;
            view.UserToRegister.Role = view.Role;
        }
    }
}
